package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ToString
@ApiModel("")
@Table(name = "tb_category_report")
public class TbCategoryReport {
    /**
     * 1级分类
     */
    @ApiModelProperty(value = "1级分类")
    @NotNull(message="1级分类不能为空")
    @Id
    @Column(name = "category_id1")
    private Integer categoryId1;

    /**
     * 2级分类
     */
    @ApiModelProperty(value = "2级分类")
    @NotNull(message="2级分类不能为空")
    @Id
    @Column(name = "category_id2")
    private Integer categoryId2;

    /**
     * 3级分类
     */
    @ApiModelProperty(value = "3级分类")
    @NotNull(message="3级分类不能为空")
    @Id
    @Column(name = "category_id3")
    private Integer categoryId3;

    /**
     * 统计日期
     */
    @ApiModelProperty(value = "统计日期")
    @NotNull(message="统计日期不能为空")
    @Id
    @Column(name = "count_date")
    private Date countDate;

    /**
     * 销售数量
     */
    @ApiModelProperty(value = "销售数量")
    private Integer num;

    /**
     * 销售额
     */
    @ApiModelProperty(value = "销售额")
    private Integer money;

    /**
     * 获取1级分类
     *
     * @return category_id1 - 1级分类
     */
    public Integer getCategoryId1() {
        return categoryId1;
    }

    /**
     * 设置1级分类
     *
     * @param categoryId1 1级分类
     */
    public void setCategoryId1(Integer categoryId1) {
        this.categoryId1 = categoryId1;
    }

    /**
     * 获取2级分类
     *
     * @return category_id2 - 2级分类
     */
    public Integer getCategoryId2() {
        return categoryId2;
    }

    /**
     * 设置2级分类
     *
     * @param categoryId2 2级分类
     */
    public void setCategoryId2(Integer categoryId2) {
        this.categoryId2 = categoryId2;
    }

    /**
     * 获取3级分类
     *
     * @return category_id3 - 3级分类
     */
    public Integer getCategoryId3() {
        return categoryId3;
    }

    /**
     * 设置3级分类
     *
     * @param categoryId3 3级分类
     */
    public void setCategoryId3(Integer categoryId3) {
        this.categoryId3 = categoryId3;
    }

    /**
     * 获取统计日期
     *
     * @return count_date - 统计日期
     */
    public Date getCountDate() {
        return countDate;
    }

    /**
     * 设置统计日期
     *
     * @param countDate 统计日期
     */
    public void setCountDate(Date countDate) {
        this.countDate = countDate;
    }

    /**
     * 获取销售数量
     *
     * @return num - 销售数量
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 设置销售数量
     *
     * @param num 销售数量
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 获取销售额
     *
     * @return money - 销售额
     */
    public Integer getMoney() {
        return money;
    }

    /**
     * 设置销售额
     *
     * @param money 销售额
     */
    public void setMoney(Integer money) {
        this.money = money;
    }
}